//
//  MyUtil.h
//  MyKitchen
//
//  Created by gaokunpeng on 15/3/19.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MyUtil : NSObject

//创建按钮的方法
+ (UIButton *)createBtnFrame:(CGRect)frame image:(NSString *)imageName selectedImage:(NSString *)selectedImageName target:(id)target action:(SEL)action tag:(CGFloat)tag;

//创建label的方法
+ (UILabel *)createLabelFrame:(CGRect)frame title:(NSString *)title textAlignment:(NSTextAlignment)textAlignment;

//创建UIImageView的方法
+ (UIImageView *)createImageViewFrame:(CGRect)frame imageName:(NSString *)imageName;

//正则判断
- (BOOL) regexFlagWith:(NSString *)regex withParameter:(NSString *)parameter;

@end
